home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 February / PCWFEB08.iso / Software / Freeware / Miro 1.0 / Miro_Installer.exe / xulrunner / python / compiled_templates / guidetab.py < prev    next >
Encoding:
Python Source  |  2007-11-12  |  1.3 KB  |  40 lines

  1. # This is a generated file. Do not edit.
  2. from template import Handle, fillAttr, quoteAndFillAttr, fillStaticTemplate
  3. from StringIO import StringIO
  4. from xhtmltools import urlencode
  5. from templatehelper import quoteattr, escape
  6. from string import Template
  7. import app
  8. import views
  9. import sorts
  10. import indexes
  11. import filters
  12. import resources
  13. import gtcache
  14. _ = gtcache.gettext
  15. def fillTemplate(domHandler, dtvPlatform, eventCookie, bodyTagExtra, *args, **kargs):
  16.     # Start of handle
  17.  
  18.     # Start user code
  19.     # End user code
  20.  
  21.     localvars = locals()
  22.     localvars.update(globals())
  23.     handle = Handle(domHandler, localvars, onUnlink = lambda:None)
  24.  
  25.  
  26.  
  27.     out = StringIO()
  28.     out.write(u"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n")
  29.     out.write(u'<html xmlns:t="http://www.participatorypolitics.org/" xmlns:i18n="http://www.participatoryculture.org/i18n">\n<head>\n</head>\n<body')
  30.     out.write(u" " + bodyTagExtra)
  31.     out.write(u'>\n<a class="feeditem">\n    <img src="')
  32.     out.write(quoteattr(this.obj.getIconURL()))
  33.     out.write(u'" alt="" class="icon"></img>\n    <div class="name">')
  34.     out.write(escape(this.obj.getTitle()))
  35.     out.write(u'</div>\n</a>\n</body>\n</html>')
  36.     out.seek(0)
  37.  
  38.  
  39.     return (out, handle)
  40.